local status_ok, configs = pcall(require, "nvim-treesitter.configs")
if not status_ok then
  return
end

configs.setup({
  -- one of "all" or a list of languages
  ensure_installed = {
    'bash',
    'c',
    'cpp',
    'dockerfile',
    'gitignore',
    'java',
    'javascript',
    'json',
    'json5',
    'python',
    'rust',
    'toml',
    'go',
    'gomod',
    'lua',
    'vim',
    'sql',
    'yaml',
  },

  ignore_install = {}, -- List of parsers to ignore installing
    highlight = {
      enable = true, -- false will disable the whole extension
      disable = {}, -- list of language that will be disabled
  },

  autopairs = {
    enable = true,
  },

  rainbow = {
    enable = true,
    -- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
    extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
    max_file_lines = 100000, -- Do not enable for files with more than n lines, int
    -- colors = {}, -- table of hex strings
    -- termcolors = {} -- table of colour name strings
  },

  indent = { enable = true, disable = { "python", "css" } },
})
